package edu.sctu.practice.class02.yangyuran.test26;

/**
 * Created by Administrator on 2015/10/19.
 */
public abstract class Role {
    private String name;
    private int age;
    private String gender;

    public void setName(String nam) {
        this.name = nam;
    }

    public void setAge(int ag) {
        this.age = ag;
    }

    public void setGender(String gend) {
        this.gender = gend;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public String getGender() {
        return gender;
    }

    public abstract void play();

    public Role(String nam) {
    }

    public Role(String nam, int ag, String gend) {
        this.setName(nam);
        this.setAge(ag);
        this.setGender(gend);
    }
}
